#ifndef TRANSLATION_NEXT_H
#define TRANSLATION_NEXT_H

#include <QObject>
//翻译+网络
#include<translator.h>
#include <iostream>
#include <QString>
#include <time.h>
#include <QTextCodec>
#include <QDebug>
#include <QObject>
#include <vector>
#include <QMainWindow>
#include <QNetworkReply>
#include<transact.h>
#include<QNetworkAccessManager>
#include<qnetworkrequest.h>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#include<QNetworkAccessManager>
#include<QTimer>
class translation_next : public QObject
{
    Q_OBJECT
public:
    explicit translation_next(QObject *parent = nullptr);
    void trans_next( QString **temp,int biaoshi,int maxline);
    void translation(QString str);

    void slot_cunrushujuku();
private slots:
    void ReplyFinished(QNetworkReply *reply);

signals:
    void signal_nexttrans_over();
    void signal_showproject(QString str,double line);
private:
    //翻译
    int maxline;
    int id=1;
    QString appid;
    QString miyao;
    int biaoshi_chi;
    QNetworkAccessManager* manager;
    QString **eng;
    QTimer timer;
};

#endif // TRANSLATION_NEXT_H
